﻿
package extremefx.storage {
	import flash.net.URLLoaderDataFormat;	

	/**
	 * @author Marcelo Volmaro
	 */
	public class TextLoader extends GLoader {

		private var _text:String;
		
		public function TextLoader(pUrl:*) {
			super(pUrl);
			_fmt = URLLoaderDataFormat.TEXT;
			_text = null;
		}
		
		override protected function _onLoadComplete():void{
			_text = _loader.data as String;
		}

		public function get text():String { 
			return _text; 
		}
	}
}
